.class Lcom/estrongs/android/view/CompressGridViewWrapper$c;
.super Ljava/lang/Object;
.source "CompressGridViewWrapper.java"

# interfaces
.implements Landroid/content/DialogInterface$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/estrongs/android/view/CompressGridViewWrapper;->M0()V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/estrongs/android/widget/c;

.field final synthetic b:Lcom/estrongs/android/view/CompressGridViewWrapper;


# direct methods
.method constructor <init>(Lcom/estrongs/android/view/CompressGridViewWrapper;Lcom/estrongs/android/widget/c;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->b:Lcom/estrongs/android/view/CompressGridViewWrapper;

    iput-object p2, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->a:Lcom/estrongs/android/widget/c;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/content/DialogInterface;I)V
    .locals 4

    .line 1
    iget-object p1, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->a:Lcom/estrongs/android/widget/c;

    invoke-virtual {p1}, Lcom/estrongs/android/widget/c;->f()Ljava/util/List;

    move-result-object p1

    .line 2
    invoke-interface {p1}, Ljava/util/List;->size()I

    move-result p2

    const/4 v0, 0x0

    if-nez p2, :cond_0

    .line 3
    iget-object p1, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->b:Lcom/estrongs/android/view/CompressGridViewWrapper;

    iget-object p1, p1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    const p2, 0x7f1104a3

    invoke-static {p1, p2, v0}, Lcom/estrongs/android/ui/view/d;->a(Landroid/content/Context;II)V

    goto :goto_1

    .line 4
    :cond_0
    iget-object p2, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->a:Lcom/estrongs/android/widget/c;

    invoke-virtual {p2}, Lcom/estrongs/android/widget/c;->a()V

    .line 5
    new-instance p2, Ljava/util/ArrayList;

    invoke-direct {p2}, Ljava/util/ArrayList;-><init>()V

    .line 6
    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v2

    if-eqz v2, :cond_1

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    .line 7
    invoke-interface {v2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {p2, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 8
    :cond_1
    iget-object v1, p0, Lcom/estrongs/android/view/CompressGridViewWrapper$c;->b:Lcom/estrongs/android/view/CompressGridViewWrapper;

    iget-object v1, v1, Lcom/estrongs/android/view/h0;->a:Landroid/content/Context;

    check-cast v1, Lcom/estrongs/android/pop/view/FileExplorerActivity;

    .line 9
    invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/fs/g;

    .line 10
    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-interface {p1}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object p1

    const/16 v3, 0x2f

    invoke-virtual {p1, v3}, Ljava/lang/String;->lastIndexOf(I)I

    move-result p1

    invoke-virtual {v2, v0, p1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object p1

    .line 11
    new-instance v0, Lcom/estrongs/android/pop/app/compress/d;

    invoke-direct {v0, v1, p1, p2}, Lcom/estrongs/android/pop/app/compress/d;-><init>(Landroid/content/Context;Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 12
    new-instance p1, Lcom/estrongs/android/view/CompressGridViewWrapper$c$a;

    invoke-direct {p1, p0}, Lcom/estrongs/android/view/CompressGridViewWrapper$c$a;-><init>(Lcom/estrongs/android/view/CompressGridViewWrapper$c;)V

    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/app/compress/d;->a(Lcom/estrongs/android/pop/app/compress/d$i;)V

    .line 13
    invoke-virtual {v0}, Lcom/estrongs/android/pop/app/compress/d;->b()V

    :goto_1
    return-void
.end method
